package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课时方案规则
 * </p>
 *
 * @author quin.song
 * @since 2023-03-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("rule_week_day")
@EqualsAndHashCode(of={"taskId","weekDayCode"})
@ApiModel(value = "RuleWeekDay对象", description = "课时方案规则")
public class RuleWeekDay implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer taskId;

    @ApiModelProperty("01~14，分别代表周一至第二周周日")
    private String weekDayCode;

    @ApiModelProperty("课时方案id")
    private String baseSchemeId;

    @ApiModelProperty("课时方案名称")
    private String baseSchemeName;

    private String schoolId;

    @ApiModelProperty("学期")
    private String term;

    @ApiModelProperty("//")
    private String gradeId;

    @TableField(exist = false)
    @ApiModelProperty("节次信息")
    private List<PeriodScheme> periodSchemes;

}
